package com.android.lovingpet;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.android.lovingpet.R;

/**
 * Created by ikata on 2018/4/8.
 */

public class IdCardAlertFragment extends Fragment implements View.OnClickListener {


    private Button bt_cancel;
    private Button bt_next;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_idcard_alert,container,false);
        bt_next=view.findViewById(R.id.bt_next);
        bt_cancel=view.findViewById(R.id.bt_cancel);
        bt_cancel.setOnClickListener(this);
        bt_next.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId())
        {
            case R.id.bt_cancel:
                getActivity().finish();
                break;
            case R.id.bt_next:
                //getFragmentManager().beginTransaction().addToBackStack(null).replace(R.id.idCard,new IdCardFragment()).commit();
                break;
            default:
                break;
        }

    }
}
